﻿package fpc.utils;

class FunctionFactory< T > implements IFactory< T >
{
	var _fun:Void->T;
	
	public function new(fun:Void->T) 
	{
		_fun = fun;
	}
	
	public function create():T
	{
		return _fun();
	}
}